// 管理群的逻辑
//改群名

export async function changeRoomTopic({room,newName}) {
    console.log(room)
    if(room){
      console.info("Bot", 'changing room topic for group', await room.topic());
        newName = newName || "newName"
        console.log(newName)
       try {
        await room.topic(newName);
         console.log('完成')
         console.log(res)
       } catch (e) {
         console.log('错误')
         room.say `你说的我没听明白呢，要不你再说一遍？`
       }
    }
}